//
//  EFengComposeTextView.h
//  WZEfengAndEtong
//
//  Created by wanzhao on 16/3/7.
//  Copyright © 2016年 wanzhao. All rights reserved.
//

#import <UIKit/UIKit.h>

@class EFengComposeTextView;
@protocol EFengComposeTextViewDelegate <NSObject>

@optional
- (void)eFengComposeTextView:(EFengComposeTextView *)textView postedMessage:(NSString *)message;
- (void)eFengComposeTextViewDidBeginEditing:(EFengComposeTextView *)textView;
- (void)eFengComposeTextViewDidChange:(EFengComposeTextView *)textView;

@end

@interface EFengComposeTextView : UIView

CopyProperty NSString *text;
CopyProperty NSAttributedString *attrText;
StrongProperty UIFont *textFont;
CopyProperty NSString *placeHoldText;
AssignProperty NSInteger MAXCHARACTERCOUNT;
StrongProperty UITextView *messageTextView;
AssignProperty BOOL showingPlaceholder;
AssignProperty NSRange selectedRange;
WeakProperty id <EFengComposeTextViewDelegate> eFengComposeTextViewDelegate;
-(void)setEditEnable:(BOOL)isEditEnable;

- (BOOL)isFirstResponder;
- (BOOL)resignFirstResponder;


@end
